package com.globallogic.capacitaciones.hibernate.domain;

import javax.persistence.Entity;
import javax.persistence.Enumerated;
import javax.persistence.Table;

@Entity
@Table(name="custom_credit_card")
public class CreditCard extends BillingDetails {
	
	@Enumerated
	private CreditCardType type;
	
	private String number;
	private String expMonth;
	private String expYear;
	
	
	public CreditCard(){
		super();
	}
	
	
	public CreditCard(String ownername, CreditCardType type, String number,
			String expMonth, String expYear) {
		super(ownername);
		this.type = type;
		this.number = number;
		this.expMonth = expMonth;
		this.expYear = expYear;
	}


	public CreditCardType getType() {
		return type;
	}
	public void setType(CreditCardType type) {
		this.type = type;
	}
	public String getNumber() {
		return number;
	}
	public void setNumber(String number) {
		this.number = number;
	}


	public String getExpMonth() {
		return expMonth;
	}


	public void setExpMonth(String expMonth) {
		this.expMonth = expMonth;
	}


	public String getExpYear() {
		return expYear;
	}


	public void setExpYear(String expYear) {
		this.expYear = expYear;
	}
	
}
